
import time
import threading
import os

timestamp = time.time()
lockTimestamp = threading.Lock()

##if not os.path.exists(os.getcwd() + '/logs/'):
##    os.makedirs(os.getcwd() + '/logs/')
##
##logFile = open(os.getcwd() + '/logs/' + str(time.asctime().replace(' ', '_')), 'w')

##print logFile

alarmCount = 0
alarmRead = 0
alarmUpload = 0

TEMP_TAG = 'Temp'
TempReadings = ()
lockTemp = threading.Lock()

LIGHT_TAG = 'Light'
LightReadings = ()
lockLight = threading.Lock()

PIR_TAG = 'PIR'
PirReadings = ()
lockPir = threading.Lock()

POST_buffer = ''
